/**
 * Created by ayu on 2017/6/11.
 */
let sql = require ('../utils/DB/MysqlStatement');
let logger = require ('../utils/logger/Logger');
module.exports = {
    insertTask      : function ( callback )
    {
        let sqlStr = 'call sarft_insertTask(?,?,?)';
        let arr = [ '0xCC', 1, 'admin' ];
        sql.sqlStatement ([ sqlStr, arr ], function ( done )
        {
            if (done.isSuccess)
            {
                callback ({
                    isSuccess: true,
                    id       : done.result[ 0 ][ 0 ].id
                });
            }
            else
            {
                callback ({
                    isSuccess: false
                });
            }
        });
    },
    updatePacketById: ( params,callBack ) =>
    {
        let sqlStr = '';
        let arr = [];
        sql.sqlStatement([sqlStr,arr],()=>{
        
        });
    }
};